<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>安装</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="wincache.requirements.html">« 需求</a></li>
      <li style="float: right;"><a href="wincache.configuration.html">运行时配置 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="wincache.setup.html">安装/配置</a></li>
    <li>安装</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="wincache.installation" class="section">
  <h2 class="title">安装</h2>
  <p class="para">
   此 <a href="https://pecl.php.net/" class="link external">&raquo;&nbsp;PECL</a> 扩展未与
PHP 捆绑。
  </p>
  <p class="para">
   安装此 PECL 扩展相关的信息可在手册中标题为
<a href="install.pecl.html" class="link">PECL
扩展的安装</a>章节中找到。更多信息如新的发行版本、下载、源文件、
维护人员信息及变更日志等，都在此处：
   <a href="https://pecl.php.net/package/wincache" class="link external">&raquo;&nbsp;https://pecl.php.net/package/wincache</a>.
  </p>
  <p class="para">
   There are two packages for this extension: one package is for PHP versions 5.2.X, 
   and the other package is for PHP 5.3.X. Select the package that is appropriate for 
   the PHP version being used.
  </p>
  <p class="para">
   To install and enable the extension, follow these steps:
  </p>
  <div class="procedure">
   <ol type="1"><li>
    <p class="simpara">
     Unpack the package into some temporary location.
    </p>
   </li>
   <li>
    <p class="simpara">
     Copy the <var class="filename">php_wincache.dll</var> file into the PHP extensions folder. 
     Typically this folder is called &quot;ext&quot; and it is located in the same folder with all 
     PHP binary files. For example: <var class="filename">C:\Program Files\PHP\ext</var>.
    </p>
   </li>
   <li>
    <p class="simpara">
     Using a text editor, open the php.ini file, which is usually located in the 
     same folder where all PHP binary files are. For example: 
     <var class="filename">C:\Program Files\PHP\php.ini</var>.
    </p>
   </li>
   <li>
    <p class="simpara">
     Add the following line at the end of the php.ini file: 
     <code class="literal">extension = php_wincache.dll</code>.
    </p>
   </li>
   <li>
    <p class="simpara">
     Save and close the <var class="filename">php.ini</var> file. 
    </p>
   </li>
   <li>
    <p class="simpara">
     Recycle the IIS Application Pools for PHP to pick up the configuration changes.
     To check that the extension has been enabled, create a file called 
     <var class="filename">phpinfo.php</var> with a PHP code that calls 
     <a href="function.phpinfo.html" class="link">phpinfo</a> function.
    </p>
   </li>
   <li>
    <p class="simpara">
     Save the <var class="filename">phpinfo.php</var> file in the root folder of a 
     IIS web site that uses PHP, then open a browser and make a request to 
     http://localhost/phpinfo.php. Search within the returned web page 
     for a section called <code class="literal">wincache</code>. If the extension 
     is enabled, then the <a href="function.phpinfo.html" class="link">phpinfo</a> 
     output will list the configuration settings provided by the WinCache.
    </p>
   </li>
  </ol></div>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <span class="simpara">
    Do not forget to remove <var class="filename">phpinfo.php</var> file from the web 
    site&#039;s root folder after verifying that extension has been enabled.
   </span>
  </p></blockquote>
 </div></div></div></body></html>